package com.yamin.picToCharPaint.utils.image;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @description:
 * @author：yamin
 * @date: 2021/9/15
 */
public class ImageConfig {

    @Resource
    private IPicToStrPic gifUtil;

    @Resource
    private IPicToStrPic picUtil;


    protected Map<String,IPicToStrPic> utilMap = new ConcurrentHashMap<>();

    @PostConstruct
    public void init(){
        utilMap.put("gif",gifUtil);
        utilMap.put("jpg",picUtil);
    }
}
